package com.bmft.controller;

import com.bmft.pojo.GoodContent;
import com.bmft.util.response.result.Result;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.ArrayList;
import java.util.List;

/**
 * @author Jarvan
 * @version 1.0
 * @create 2020/11/6 21:03
 */
@RestController()
public class TestController {
    @GetMapping("/test")
    public Result<List<GoodContent>> test(){
        ArrayList<GoodContent> goodContents = new ArrayList<>();
        goodContents.add(new GoodContent("name","price","image path"));
        goodContents.add(new GoodContent("name","price","image path"));
        goodContents.add(new GoodContent("name","price","image path"));
        goodContents.add(new GoodContent("name","price","image path"));
        return new Result<>().success(goodContents);
    }
}
